<template>
  <div id="goodsInfo">
    <l-header></l-header>
     <ul class="main_router">
         <li><router-link
          :to="{ name: 'book'
          }"><span class="{active:isTrue==''}">订餐</span></router-link></li>
         <li><router-link :to="{ name: 'evaluate' }"><span>评价</span></router-link></li>
         <li><router-link :to="{ name: 'business' }"><span>商家</span></router-link></li>
      </ul>
      <div class="main">
          <router-view/>
      </div>
  </div>
</template>

<script>
import lHeader from "@/components/l-Header";
import Book from '@/views/book'
import Evaluate from '@/views/evaluate'
import Business from '@/views/business'
export default {
 name:'goodsInfo',
 components:{
   lHeader,
   Book,
   Evaluate,
   Business

 },
 data() {
   return {
     isTrue:[

     ]
   }
 }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
  * {
    margin: 0;
    padding: 0;
  }
  .main_router {
    display: flex;
  }
  .main_router li {
    flex: 1;
    font-size: 0.16rem;
    font-weight: bold;
    color: #737373;
    margin: 0.1rem;
    text-align: center
  }
  .router-link-active {
    color: #000000;
    border-bottom:3px solid #2395FF;
    padding:0.1rem 0;
}
</style>
